import React from 'react';
import {Modal} from 'antd';
import AppList from "@/pages/sys/app";

const AddAppForm = (props) => {
  const {
    onCancel: handleAddAppModalVisible,
    addAppModalVisible,
    values,
    addApp
  } = props;

  return (
    <Modal
      width={"fit-content"}
      bodyStyle={{
        padding: '32px 40px 48px',
      }}
      destroyOnClose
      visible={addAppModalVisible}
      title={values.siteName}
      footer={null}
      onCancel={() => handleAddAppModalVisible()}
    >
      <AppList  domainId={values.id} comId={values.comId} addApp={addApp}/>
    </Modal>
  );
};

export default AddAppForm;
